package br.com.ngame.demos;

import java.awt.BorderLayout;
import javax.swing.JApplet;

public class MyApplet extends JApplet
{
	MyGame game;

	@Override
	public void init()
	{
		setIgnoreRepaint(true);
		setLayout(new BorderLayout());
		setSize(800, 600);
		game = new MyGame();
		game.setSize(getWidth(), getHeight());
		add(game);
		game.requestFocus();
		game.start();
		game.setFullScreen(false);
	}

	@Override
	public void destroy()
	{
		game.terminate();
	}
}